﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Reporting.WebForms;
using STT.Business;
using STT.Entities;
using STT.Layer.Connection;
using System.Data;
using System.IO;
namespace STT.Report
{
    public partial class DSHVProfileGV : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                ETbHocVien hv = new ETbHocVien();
                hv.MaLop = int.Parse(Request.QueryString["mhv"].ToString().Trim());
                DataTable dt = BTbHocVien.SelectByLopExport(hv);
                rptDSDProfileGV.Visible = true;
                rptDSDProfileGV.LocalReport.ReportPath = "RDLC\\DSHVProfileGV.rdlc";
                rptDSDProfileGV.LocalReport.DataSources.Clear();
                rptDSDProfileGV.LocalReport.DataSources.Add(new ReportDataSource("DataSet1", dt));
            }
        }
    }
}